<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<!-- 上传部分 -->
<link href="${path}/static/uploadify/uploadify.css" rel="stylesheet" type="text/css">
<script type="text/javascript"  src="${path}/static/uploadify/jquery.uploadify.js"></script>

<script type="text/javascript">
    $(function() {
        $('#appPackageDescEditForm').form({
            url : '${path }/appPackageDesc/edit',
            onSubmit : function() {
                progressLoad();
                var isValid = $(this).form('validate');
                if (!isValid) {
                    progressClose();
                }
                return isValid;
            },
            success : function(result) {
                progressClose();
                result = $.parseJSON(result);
                if (result.success) {
                    parent.$.modalDialog.openner_dataGrid.datagrid('reload');//之所以能在这里调用到parent.$.modalDialog.openner_dataGrid这个对象，是因为user.jsp页面预定义好了
                    parent.$.modalDialog.handler.dialog('close');
                } else {
                    parent.$.messager.alert('错误', result.msg, 'error');
                }
            }
        });
            $("#appPackageDescEditType").val('${appPackageDesc.type}');
            $("#appPackageDescEditName").val('${appPackageDesc.name}');
            $("#appPackageDescEditStatus").val('${appPackageDesc.status}');
    });
</script>
<div class="easyui-layout" data-options="fit:true,border:false">
    <div data-options="region:'center',border:false" title="" style="overflow: hidden;padding: 3px;">
        <form id="appPackageDescEditForm" method="post">
            <table class="grid">
                <tr>
                    <td>类型</td>
                    <td >
                        <input name="id" type="hidden"  value="${appPackageDesc.id}">
                         ${appPackageDesc.type}
                    </td>
                </tr>
                <tr>
                    <td>编号</td>
                    <td >
                        ${appPackageDesc.index}
                    </td>
                </tr>
                <tr>
                    <td>名称</td>
                    <td >
                        ${appPackageDesc.name}
                    </td>
                </tr>
                <tr>
                    <td>状态</td>
                    <td >
                        <c:if test="${appPackageDesc.status==0}">
                            <c:out value="启用"/>
                        </c:if>
                        <c:if test="${appPackageDesc.status==1}">
                            <c:out value="禁用"/>
                        </c:if>
                    </td>
                </tr>
                <tr>
                    <td>描述</td>
                    <td>
                        <textarea style="height:100px;width:95%;" name="desc">${appPackageDesc.desc}</textarea>
                    </td>

                </tr>
            </table>
        </form>
    </div>
</div>